package doxygenxml.compound;
 
/**********************************************************************************************
 * Copyright (c) 2001-2020 Liquid Technologies Limited. All rights reserved.
 * See www.liquid-technologies.com for product details.
 *
 * Please see products End User License Agreement for distribution permissions.
 *
 * WARNING: THIS FILE IS GENERATED
 * Changes made outside of ##HAND_CODED_BLOCK_START blocks will be overwritten
 *
 * Generation  :  by Liquid XML Data Binder 18.0.5.9988
 * Using Schema: CENSORED
 **********************************************************************************************/
	
// <summary>
// This class represents the ComplexType docImageType
// </summary>
public class DocImageType extends com.liquid_technologies.ltxmllib18.XmlGeneratedClass {
	private static final long serialVersionUID = 13L;

	// <summary>
	// 	Constructor for DocImageType
	// </summary>
	// <remarks>
	// The class is created with all the mandatory fields populated with the
	// default data. 
	// All Collection object are created.
	// However any 1-n relationships (these are represented as collections) are
	// empty. To comply with the schema these must be populated before the xml
	// obtained from ToXml is valid against the schema CENSORED
	// </remarks>
	public DocImageType() {
		setElementName("docImageType");
		init();
	}
	public DocImageType(String elementName) {
		setElementName(elementName);
		init();
	}		

	// <summary>
	// 	Initializes the class
	// </summary>
	// <remarks>
	// This creates all the mandatory fields (populated with the default data) 
	// All Collection object are created.
	// However any 1-n relationships (these are represented as collections) are
	// empty. To comply with the schema these must be populated before the xml
	// obtained from ToXml is valid against the schema CENSORED.
	// </remarks>
	@Override
	protected void init() {
		try {
			doxygenxml.compound.Registration.iRegistrationIndicator = 0; // causes registration to take place
			_type = doxygenxml.compound.DoxImageKind.Html;
			_isValidType = false;
			_name = "";
			_isValidName = false;
			_width = "";
			_isValidWidth = false;
			_height = "";
			_isValidHeight = false;
			_inline = doxygenxml.compound.DoxBool.Yes;
			_isValidInline = false;
			_caption = "";
			_isValidCaption = false;
			_docImageType_Group = new doxygenxml.compound.XmlObjectCollection<doxygenxml.compound.DocImageType_Group>("docImageType_Group", "", 0, -1, true, doxygenxml.compound.DocImageType_Group.class);

			_primitiveValue = "";
			// ##HAND_CODED_BLOCK_START ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
			// Add Additional initialization code here...
			// ##HAND_CODED_BLOCK_END ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS

			getClassAttributeInfo();
			getClassElementInfo();
		} catch (Exception ex) {
			// should never happen
			ex.printStackTrace();
			throw new InternalError();
		}
	}



	// <summary>
	// Allows the class to be copied
	// </summary>
	// <remarks>
	// Performs a 'deep copy' of all the data in the class (and its children)
	// </remarks>
	@Override
	public Object clone() throws CloneNotSupportedException {
		try {
			doxygenxml.compound.DocImageType newObject = (doxygenxml.compound.DocImageType)super.clone();

			// clone, creates a bitwise copy of the class, so all the collections are the
			// same as the parents. Init will re-create our own collections, and classes, 
			// preventing objects being shared between the new an original objects
			newObject.init();
			newObject._type = _type;
			newObject._isValidType = _isValidType;
			if (_isValidName)
				newObject._name = _name;
			newObject._isValidName = _isValidName;
			if (_isValidWidth)
				newObject._width = _width;
			newObject._isValidWidth = _isValidWidth;
			if (_isValidHeight)
				newObject._height = _height;
			newObject._isValidHeight = _isValidHeight;
			newObject._inline = _inline;
			newObject._isValidInline = _isValidInline;
			if (_isValidCaption)
				newObject._caption = _caption;
			newObject._isValidCaption = _isValidCaption;
			for(int i=0; i<_docImageType_Group.size(); i++)
				newObject._docImageType_Group.add((doxygenxml.compound.DocImageType_Group)_docImageType_Group.get(i).clone());
	
			newObject._primitiveValue = _primitiveValue;
// ##HAND_CODED_BLOCK_START ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS

// Add Additional clone code here...

// ##HAND_CODED_BLOCK_END ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS

			return newObject;
		} catch (CloneNotSupportedException e) {
			// should never happen
			e.printStackTrace();
			throw new InternalError();
		}
	}

	@Override
	public String getTargetNamespace() {
		return "";
	}

	// <summary>
	// Represents an optional Attribute in the XML document
	// </summary>
	// <remarks>
	// This property is represented as an Attribute in the XML.
	// It is optional, initially it is not valid.
	// </remarks>
	public doxygenxml.compound.DoxImageKind getType() throws com.liquid_technologies.ltxmllib18.exceptions.LtException {
		if (_isValidType == false)
			throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidStateException("The Property type is not valid. Set typeValid = true");
		return _type;
	}
	public void setType(doxygenxml.compound.DoxImageKind value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		_type = value;
		_isValidType = true;
	}
	// <summary>
	// Indicates if type contains a valid value.
	// </summary>
	// <remarks>
	// true if the value for type is valid, false if not.
	// If this is set to true then the property is considered valid, and assigned its
	// default value (doxygenxml.compound.DoxImageKind.Html).
	// If its set to false then its made invalid, and subsequent calls to get type
	// will raise an exception.
	// </remarks>
	public boolean isValidType() {
		return _isValidType;  
	}
	public void setValidType(boolean value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value != _isValidType) {
			_type = doxygenxml.compound.DoxImageKind.Html;
			_isValidType = value;
		}
	}
	protected doxygenxml.compound.DoxImageKind _type;
	protected boolean _isValidType;

	// <summary>
	// Represents an optional Attribute in the XML document
	// </summary>
	// <remarks>
	// This property is represented as an Attribute in the XML.
	// It is optional, initially it is not valid.
	// </remarks>
	public java.lang.String getName() throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (_isValidName == false)
			throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidStateException("The Property name is not valid. Set nameValid = true");
		return _name;  
	}
	public void setName(java.lang.String value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		// Apply whitespace rules appropriately
		value = com.liquid_technologies.ltxmllib18.WhitespaceUtils.preserve(value); 
		_isValidName = true;
		_name = value;
	}

	// <summary>
	// Indicates if name contains a valid value.
	// </summary>
	// <remarks>
	// true if the value for name is valid, false if not.
	// If this is set to true then the property is considered valid, and assigned its
	// default value ("").
	// If its set to false then its made invalid, and subsequent calls to get name
	// will raise an exception.
	// </remarks>
	public boolean isValidName() {
		return _isValidName;
	}
	public void setValidName(boolean value)  throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value != _isValidName) {
			_name = "";
			_isValidName = value;
		}
	}
	protected boolean _isValidName;
	protected java.lang.String _name;

	// <summary>
	// Represents an optional Attribute in the XML document
	// </summary>
	// <remarks>
	// This property is represented as an Attribute in the XML.
	// It is optional, initially it is not valid.
	// </remarks>
	public java.lang.String getWidth() throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (_isValidWidth == false)
			throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidStateException("The Property width is not valid. Set widthValid = true");
		return _width;  
	}
	public void setWidth(java.lang.String value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		// Apply whitespace rules appropriately
		value = com.liquid_technologies.ltxmllib18.WhitespaceUtils.preserve(value); 
		_isValidWidth = true;
		_width = value;
	}

	// <summary>
	// Indicates if width contains a valid value.
	// </summary>
	// <remarks>
	// true if the value for width is valid, false if not.
	// If this is set to true then the property is considered valid, and assigned its
	// default value ("").
	// If its set to false then its made invalid, and subsequent calls to get width
	// will raise an exception.
	// </remarks>
	public boolean isValidWidth() {
		return _isValidWidth;
	}
	public void setValidWidth(boolean value)  throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value != _isValidWidth) {
			_width = "";
			_isValidWidth = value;
		}
	}
	protected boolean _isValidWidth;
	protected java.lang.String _width;

	// <summary>
	// Represents an optional Attribute in the XML document
	// </summary>
	// <remarks>
	// This property is represented as an Attribute in the XML.
	// It is optional, initially it is not valid.
	// </remarks>
	public java.lang.String getHeight() throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (_isValidHeight == false)
			throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidStateException("The Property height is not valid. Set heightValid = true");
		return _height;  
	}
	public void setHeight(java.lang.String value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		// Apply whitespace rules appropriately
		value = com.liquid_technologies.ltxmllib18.WhitespaceUtils.preserve(value); 
		_isValidHeight = true;
		_height = value;
	}

	// <summary>
	// Indicates if height contains a valid value.
	// </summary>
	// <remarks>
	// true if the value for height is valid, false if not.
	// If this is set to true then the property is considered valid, and assigned its
	// default value ("").
	// If its set to false then its made invalid, and subsequent calls to get height
	// will raise an exception.
	// </remarks>
	public boolean isValidHeight() {
		return _isValidHeight;
	}
	public void setValidHeight(boolean value)  throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value != _isValidHeight) {
			_height = "";
			_isValidHeight = value;
		}
	}
	protected boolean _isValidHeight;
	protected java.lang.String _height;

	// <summary>
	// Represents an optional Attribute in the XML document
	// </summary>
	// <remarks>
	// This property is represented as an Attribute in the XML.
	// It is optional, initially it is not valid.
	// </remarks>
	public doxygenxml.compound.DoxBool getInline() throws com.liquid_technologies.ltxmllib18.exceptions.LtException {
		if (_isValidInline == false)
			throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidStateException("The Property inline is not valid. Set inlineValid = true");
		return _inline;
	}
	public void setInline(doxygenxml.compound.DoxBool value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		_inline = value;
		_isValidInline = true;
	}
	// <summary>
	// Indicates if inline contains a valid value.
	// </summary>
	// <remarks>
	// true if the value for inline is valid, false if not.
	// If this is set to true then the property is considered valid, and assigned its
	// default value (doxygenxml.compound.DoxBool.Yes).
	// If its set to false then its made invalid, and subsequent calls to get inline
	// will raise an exception.
	// </remarks>
	public boolean isValidInline() {
		return _isValidInline;  
	}
	public void setValidInline(boolean value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value != _isValidInline) {
			_inline = doxygenxml.compound.DoxBool.Yes;
			_isValidInline = value;
		}
	}
	protected doxygenxml.compound.DoxBool _inline;
	protected boolean _isValidInline;

	// <summary>
	// Represents an optional Attribute in the XML document
	// </summary>
	// <remarks>
	// This property is represented as an Attribute in the XML.
	// It is optional, initially it is not valid.
	// </remarks>
	public java.lang.String getCaption() throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (_isValidCaption == false)
			throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidStateException("The Property caption is not valid. Set captionValid = true");
		return _caption;  
	}
	public void setCaption(java.lang.String value) throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		// Apply whitespace rules appropriately
		value = com.liquid_technologies.ltxmllib18.WhitespaceUtils.preserve(value); 
		_isValidCaption = true;
		_caption = value;
	}

	// <summary>
	// Indicates if caption contains a valid value.
	// </summary>
	// <remarks>
	// true if the value for caption is valid, false if not.
	// If this is set to true then the property is considered valid, and assigned its
	// default value ("").
	// If its set to false then its made invalid, and subsequent calls to get caption
	// will raise an exception.
	// </remarks>
	public boolean isValidCaption() {
		return _isValidCaption;
	}
	public void setValidCaption(boolean value)  throws com.liquid_technologies.ltxmllib18.exceptions.LtException { 
		if (value != _isValidCaption) {
			_caption = "";
			_isValidCaption = value;
		}
	}
	protected boolean _isValidCaption;
	protected java.lang.String _caption;

	// <summary>
	// A collection of docImageType_Groups
	// </summary>
	// <remarks>
	// This property is represented as an Element in the XML.
	// This collection may contain 0 to Many objects.
	// </remarks>
	public doxygenxml.compound.XmlObjectCollection<doxygenxml.compound.DocImageType_Group> getDocImageType_Group() {
		return _docImageType_Group; 
	}
	protected doxygenxml.compound.XmlObjectCollection<doxygenxml.compound.DocImageType_Group> _docImageType_Group;


	// <summary>
	// The InnerText for this element
	// </summary>
	// <remarks>
	// This class represents the element DocImageType, this
	// element is open, and as such we can place data into it.
	// i.e. <DocImageType>Some Data</DocImageType>
	// </remarks>
	public java.lang.String getPrimitiveValue() {
		return _primitiveValue;
	}
	public void setPrimitiveValue(java.lang.String value) {
		_primitiveValue = com.liquid_technologies.ltxmllib18.WhitespaceUtils.preserve(value);
	}
	protected java.lang.String _primitiveValue;

	@Override
	public String getNamespace() {
		return "";
	}	

	@Override
	public com.liquid_technologies.ltxmllib18.XmlObjectBase getBase() {
		return this;
	}
	protected void onEvent(com.liquid_technologies.ltxmllib18.XmlObjectBase msgSource, int msgType, Object data) {
		if (msgType == CollectionChangeEvent) {
		}
	}

	private static com.liquid_technologies.ltxmllib18.ParentElementInfo __parentElementInfo = null;
	private static com.liquid_technologies.ltxmllib18.ElementInfo[] __elementInfo = null;
	private static com.liquid_technologies.ltxmllib18.AttributeInfo[] __attributeInfo = null;
		
	protected com.liquid_technologies.ltxmllib18.ParentElementInfo getClassInfo() throws Exception {
		if (__parentElementInfo == null) {
			__parentElementInfo = new com.liquid_technologies.ltxmllib18.ParentElementInfo(	
																	com.liquid_technologies.ltxmllib18.XmlObjectBase.XmlElementGroupType.SEQUENCE,
																	com.liquid_technologies.ltxmllib18.XmlObjectBase.XmlElementType.ELEMENT, "docImageType", "", true, false,
																	findGetterMethod("doxygenxml.compound.DocImageType", "getPrimitiveValue"), findSetterMethod("doxygenxml.compound.DocImageType", "setPrimitiveValue", "java.lang.String"),
																	com.liquid_technologies.ltxmllib18.Conversions.ConversionType.TYPE_STRING, null, false);
		}
		return __parentElementInfo;
	}

	protected com.liquid_technologies.ltxmllib18.ElementInfo[] getClassElementInfo() throws Exception {
		if (__elementInfo == null) {
			__elementInfo = new com.liquid_technologies.ltxmllib18.ElementInfo[] {
				 new com.liquid_technologies.ltxmllib18.data.ElementInfoSeqClsCol("docImageType_Group", "", findGetterMethod("doxygenxml.compound.DocImageType", "getDocImageType_Group"), com.liquid_technologies.ltxmllib18.XmlObjectBase.XmlElementType.PSEUDO_ELEMENT)
			};
		}
		return __elementInfo;
	}

	protected com.liquid_technologies.ltxmllib18.AttributeInfo[] getClassAttributeInfo() throws Exception {
		if (__attributeInfo==null) {
			__attributeInfo = new com.liquid_technologies.ltxmllib18.AttributeInfo[] {
				 new com.liquid_technologies.ltxmllib18.data.AttributeInfoEnum("type", "", findGetterMethod("doxygenxml.compound.DocImageType", "getType"), findSetterMethod("doxygenxml.compound.DocImageType", "setType", "doxygenxml.compound.DoxImageKind"), findGetterMethod("doxygenxml.compound.DocImageType", "isValidType"), getEnumFromString("doxygenxml.compound.DoxImageKind", "DoxImageKind"), getEnumToString("doxygenxml.compound.DoxImageKind", "DoxImageKind"), null)
				,new com.liquid_technologies.ltxmllib18.AttributeInfoPrimitive("name", "", findGetterMethod("doxygenxml.compound.DocImageType", "getName"), findSetterMethod("doxygenxml.compound.DocImageType", "setName", "java.lang.String"), findGetterMethod("doxygenxml.compound.DocImageType", "isValidName"), com.liquid_technologies.ltxmllib18.Conversions.ConversionType.TYPE_STRING, null, com.liquid_technologies.ltxmllib18.WhitespaceRule.PRESERVE, new com.liquid_technologies.ltxmllib18.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null)
				,new com.liquid_technologies.ltxmllib18.AttributeInfoPrimitive("width", "", findGetterMethod("doxygenxml.compound.DocImageType", "getWidth"), findSetterMethod("doxygenxml.compound.DocImageType", "setWidth", "java.lang.String"), findGetterMethod("doxygenxml.compound.DocImageType", "isValidWidth"), com.liquid_technologies.ltxmllib18.Conversions.ConversionType.TYPE_STRING, null, com.liquid_technologies.ltxmllib18.WhitespaceRule.PRESERVE, new com.liquid_technologies.ltxmllib18.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null)
				,new com.liquid_technologies.ltxmllib18.AttributeInfoPrimitive("height", "", findGetterMethod("doxygenxml.compound.DocImageType", "getHeight"), findSetterMethod("doxygenxml.compound.DocImageType", "setHeight", "java.lang.String"), findGetterMethod("doxygenxml.compound.DocImageType", "isValidHeight"), com.liquid_technologies.ltxmllib18.Conversions.ConversionType.TYPE_STRING, null, com.liquid_technologies.ltxmllib18.WhitespaceRule.PRESERVE, new com.liquid_technologies.ltxmllib18.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null)
				,new com.liquid_technologies.ltxmllib18.data.AttributeInfoEnum("inline", "", findGetterMethod("doxygenxml.compound.DocImageType", "getInline"), findSetterMethod("doxygenxml.compound.DocImageType", "setInline", "doxygenxml.compound.DoxBool"), findGetterMethod("doxygenxml.compound.DocImageType", "isValidInline"), getEnumFromString("doxygenxml.compound.DoxBool", "DoxBool"), getEnumToString("doxygenxml.compound.DoxBool", "DoxBool"), null)
				,new com.liquid_technologies.ltxmllib18.AttributeInfoPrimitive("caption", "", findGetterMethod("doxygenxml.compound.DocImageType", "getCaption"), findSetterMethod("doxygenxml.compound.DocImageType", "setCaption", "java.lang.String"), findGetterMethod("doxygenxml.compound.DocImageType", "isValidCaption"), com.liquid_technologies.ltxmllib18.Conversions.ConversionType.TYPE_STRING, null, com.liquid_technologies.ltxmllib18.WhitespaceRule.PRESERVE, new com.liquid_technologies.ltxmllib18.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null)
			};
		}
		return __attributeInfo;
	}

// ##HAND_CODED_BLOCK_START ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS

// Add Additional Methods and members here...

// ##HAND_CODED_BLOCK_END ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
}


